import { craeteEffect, effectTypes } from './helper'

/**
 * cancelled 判断当前任务是否取消了
 * @export
 * @param {*} tasks
 */
export function cancelled(...tasks) {
    return craeteEffect(effectTypes.CANCELLED, { tasks })
}

/**
 * 处理 fork effect 
 * @export
 * @param {*} env
 * @param {*} effect
 * @param {*} next
 */
export function runCancelledEffect(env, effect, next) {
    const { payload: { tasks } } = effect

}